package bean;

import java.io.Serializable;

public class Message  implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -6653598622043300569L;
	public Message(Exception runException, String message, State state) {
		super();
		this.runException = runException;
		this.message = message;
		this.state = state;
	}
	enum State implements Serializable{
		NORMAL,
		FALSE,
		RIGHT,
		EXCEPTION
	};
	
	private Exception runException;
	private String message;
	private State state;
	public Exception getRunException() {
		return runException;
	}
	public void setRunException(Exception runException) {
		this.runException = runException;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public State getState() {
		return state;
	}
	public void setState(State state) {
		this.state = state;
	}
	@Override
	public String toString() {
		return "Message [message=" + message + ", runException=" + runException
				+ ", state=" + state + "]";
	}
	
}
